package dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.Product;

import java.util.List;

@Mapper
public interface ProductDao {
    List<Product> getAllProduct();

    Product getAllProductById(@Param("id") Integer id);

    int updateProductQuantity(@Param("id") Integer id, @Param("quantity") Integer quantity);
}
